require 'mechanize'
require_relative '../../Entity/Infomation'
class SinaNBAPowerCollection
  attr_accessor :url

  def Collection()
    result = ""
    agent = Mechanize.new
    page = agent.get('http://sports.sina.com.cn/nba/6.shtml')
    page.search('div#right a,span').each do |link|
      info = Infomation.new
      info.title = link.content
      result << link.content << '<br>'
    end
    return result
  end
end
